package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.pubinfo.passbook.common.model.dto.financial.FeedbackParam;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName t_passbook_claim_feedback
 */
@TableName(value = "t_passbook_claim_feedback")
@Data
@NoArgsConstructor
public class TPassbookClaimFeedback implements Serializable {
  /**
   *
   */
  @TableId(type = IdType.ASSIGN_UUID, value = "id")
  private String id;
  
  /**
   *
   */
  private String accDate;
  
  /**
   *
   */
  private String accNumber;
  
  /**
   *
   */
  private String eInvoiceId;
  
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
  
  public TPassbookClaimFeedback(FeedbackParam feedbackParam) {
    this.accDate = feedbackParam.getAccDate();
    this.accNumber = feedbackParam.getAccNumber();
    this.eInvoiceId = feedbackParam.getClaimRecords().get(0).getEInvoiceId();
  }
}